package storage;
/**
* The basic file block
* @author Nodirjon Siddikov
*/
public class Block
{
private int _id;
private int _size;
private String _content;
//constructor
public Block(int blockID, int blockSize)
{
_id = blockID;
_size = blockSize;
_content = blockID + "_" + blockSize;
}
//returns the size of the block
public int getSize()
{
return _size;
}
//returns the ID of the block
public int getID()
{
return _id;
}
//returns the content of the block
public String getContent()
{
return _content;
}
}